package edu.sctu.xialei.june.day20150610one.util;

import edu.sctu.xialei.june.day20150610one.modle.*;

import java.util.HashMap;

/**
 * Created by Administrator on 6/10/2015.
 */

//地铁赋值类
public class SettingTrainStationData {

    public TrainStation setTrainStationData(){
        TrainStation trainStation = new TrainStation();

//        危险品
        trainStation.dangerousParcel = new String[]{
          "手枪","管制刀具","毒品","充气娃娃"
        };
        trainStation.dangerousWater = new String[]{
          "汽油","硫酸"
        };

//       安检员
        trainStation.safetyInspector = new SafetyInspector();
        trainStation.safetyInspector.name = "小明";
        trainStation.safetyInspector.sex = "男";

//        招呼站信息
        HashMap<String,Integer> map = new HashMap<String,Integer>();
        map.put("犀浦", 1);
        map.put("茶店子", 2);
        map.put("一品天下", 3);
        map.put("蜀汉路", 4);
        map.put("天府广场", 5);
        map.put("东大路", 6);
        map.put("成渝立交", 7);
        map.put("惠王陵", 8);
        map.put("成都行政学院", 9);
        map.put("书房", 10);
        map.put("龙泉", 11);
        trainStation.trainStops = map;

//        售票机
        trainStation.ticketMachine = new TicketMachine();

//        充值机
        trainStation.rechargingMachine = new RechargingMachine();

//        pos机
        trainStation.pos = new Pos();

        return trainStation;
    }
}
